package com.qf.service;

import com.qf.dao.UserDAO;
import com.qf.dao.UserDAOImpl;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 自定义工厂    控制反转
 * @author lixu
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserServiceImpl implements UserService{


    private UserDAO uuuu;

    private int age ;

    @Override
    public List<String> findAll() {
        return uuuu.findAll();
    }
}
